package com.lenovo.leos.filebrowser.ui;

import android.content.Context;
import android.util.Log;

public class Global {
	private static final String TAG = "Global";
	
	private static Context mContext = null;
	
	public static void init(Context context) {
		Log.i(TAG, "init global");
		if (null == mContext)
			mContext = context.getApplicationContext();		
	}
	
	public static Context getContext() {
		if (null == mContext){
			Log.e(TAG, "mContext is null in getContext");
			return null;
		}else
			return mContext;
	}
}